<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>倍数游戏</title>
	</head>
	<body>
		<input style="text" id="txt" placeholder="请输入倍数 "/>
		<button onclick="a()">开始</button>
		<script>
			function a(){
				var n=document.getElementById("txt").value;
				for(var i = 1 ; i <=100 ; i++){
					if( i % n ==0 || i %10 == n || Math.floor(i /10) ==n){
						alert("嘘");
					}else{
						alert(i);
					}
				}
			}
		</script>
	</body>
</html>
